<?php
	/*
	 * File: update_inc_vars.php
	 * Last modification: 21.07.2011
	 * Author(s): kivio.wanderley
	 * 
	 */
?>

<?php /** UPPER PHP CODE */	

?>
	
<?php /** CENTER PHP CODE */

	/* Get all post vars and manipulate as another var */

	/* People vars */

	$upd_first_name = (isset($_POST['upd_first_name'])) ? datab_prepare_string(lang_get('first_name'), $_POST['upd_first_name']) : "NULL"; 
	$upd_last_name = (isset($_POST['upd_last_name'])) ? datab_prepare_string(lang_get('last_name'), $_POST['upd_last_name']) : "NULL";
	$upd_cpf = (isset($_POST['upd_cpf'])) ? datab_prepare_numeric("CPF", $_POST['upd_cpf']) : "NULL";

	/* User vars */
	
	$upd_user = (isset($_POST['upd_user'])) ? $p_value = strtolower(datab_prepare_string(lang_get('username'), $_POST['upd_user'])) : "NULL";
	$upd_access_list = (isset($_POST['access_option_list'])) ? datab_prepare_int(lang_get('access_level'), $_POST['access_option_list']) : "NULL";
	
	/* Option lists and others used by more than one */
	
	$people_option_list = (isset($_POST['people_option_list'])) ? $_POST['people_option_list'] : "NULL";
	$user_option_list = (isset($_POST['user_option_list'])) ? $_POST['user_option_list'] : "NULL";
	
?>	